package cn.org.mrliu.code.generator.web.element;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Form implements Serializable {
	private static final long serialVersionUID = 3775681841246204663L;
	private String id;
	private List<FormElement> list = new ArrayList<>();

	public Form(String id) {
		this.id = id;
	}

	public void add(FormElement formElement) {
		list.add(formElement);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<FormElement> getList() {
		return list;
	}

	public void setList(List<FormElement> list) {
		this.list = list;
	}
}
